package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 窄化请求
 * @author stone
 * @date 2022/08/05 17:09
 */
@Controller
@RequestMapping("user")
public class UserController {

    //@RequestMapping("user/register")
    @RequestMapping("register") //user/register
    @ResponseBody
    public BaseRespVo register() {
        return BaseRespVo.ok("register");
    }
    //@RequestMapping("user/login")
    @RequestMapping("login")
    @ResponseBody
    public BaseRespVo login() {
        return BaseRespVo.ok("login");
    }
    //@RequestMapping("user/edit")
    @RequestMapping("edit")
    @ResponseBody
    public BaseRespVo edit() {
        return BaseRespVo.ok("edit");
    }
}
